﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Application.Dto.Input
{
    /// <summary>
    /// 主键输入
    /// </summary>
    /// <typeparam name="TPrimaryKey"></typeparam>
    public class PrimaryKeyInput<TPrimaryKey> 
    {
        /// <summary>
        /// 获取或设置主键
        /// </summary>
        [Required]
        public TPrimaryKey Id { get; set; }
    }

    /// <summary>
    /// 主键输入
    /// </summary>
    public class PrimaryKeyInput : PrimaryKeyInput<int>
    {

    }
}
